package server.connector.http;

public class Constants {

    //Socket read方法最大阻塞时间 单位为毫秒
    public static final int DEFAULT_CONNECTION_TIMEOUT = 60000;
    //服务器默认端口
    public static final int DEFAULT_PORT = 6688;
    //服务器默认连接队列长度
    public static final int DEFAULT_ACCEPT_COUNT = 10;
    //服务器默认最少的处理器数
    public static final int DEFAULT_MIN_PROCESSORS = 5;
    //服务器默认最多的处理器数(为负数代表不限制)
    public static final int DEFAULT_MAX_PROCESSORS = 10;
    //服务器默认输入流缓冲区大小
    public static final int DEFAULT_INPUT_STREAM_BUFFER_SIZE = 2048;
    //服务器信息
    public static final String SERVER_INFO = "server by cyl";
    //服务器默认请求报文字符集编码
    public static final String DEFAULT_REQUEST_ENCODING = "utf-8";
    //服务器默认响应报文字符集编码
    public static final String DEFAULT_RESPONSE_ENCODING = "utf-8";

    //空闲状态
    public static final int PROCESSOR_IDLE = 0;
    //处理请求状态
    public static final int PROCESSOR_ACTIVE = 1;
    //服务器默认输出流缓冲区大小
    public static final int DEFAULT_OUTPUT_STREAM_BUFFER_SIZE = 1024;

}
